package cn.com.sqlite.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cn.com.sqlite.demo.common.annotation.SystemControllerLog;
import cn.com.sqlite.demo.entity.po.log.UserPO;
import cn.com.sqlite.demo.service.UserService;

/**
* @Description: 用户信息控制类
* @author Y.Jin
* @date 2017年2月7日 下午4:39:29
 */
@Controller
@RequestMapping(value="user")
public class UserController extends BaseController{
	
	@Autowired
	private UserService userService;

	/**
	 * @param po 新增用户信息
	 * @return
	 * @throws Exception 异常
	 */
	@RequestMapping(value="add",method=RequestMethod.POST)
	@SystemControllerLog(description="新增用户信息")
	public String add(UserPO po) throws Exception{
		userService.add(po);
		return success();
	}
}
